<?php include("includes/startPage.php"); checkLogin(0); ?>
<?php include('includes/header.php'); printHeader("Index", "Nordic Sauna");?> <!-- (PageTitle, Banner Text) Prints <head>, opens <body> and prints banner -->
<?php include('includes/navigation.php'); printLeftMenu("index"); ?> <!-- Navigation include, (currentpagename) -->

<?php OpenContentSection(); ?> 
	<!-- Content Starts -->
	<h2>Welcome to Nordic-Sauna</h2>
        
        <table class="mostDownloaded" border="0" width="200px" align="right" style="float: right">
            <tr><td colspan="2"><strong>Most Downloaded</strong></td></tr>
            <tr>
            <?php
                $stat = ns_dao_software::GetStatsTable();
                          
                foreach ($stat as $k => $v)
                {
                    echo '<tr><td valign="top">';
                    $software = ns_dao_software::SoftwareByID2($v['SoftwareID']);                                           
                    echo '<a href="software.php?id='.$software[0]['SoftwareID'].'">';                        
                    echo '<img src="../../content/softwareAvatar/'.$software[0]['AvatarImage'].'" width="30" height="30" border="0" />';
                    echo '<span style="vertical-align: top">'.$software[0]['SoftwareName'].'</span>';
                    echo '</a></td>';

                    echo '<td valign="top">';
                    echo $v['DownloadCount'];
                    echo '</td></tr>';                    
                }
            ?>
            </tr>
        </table>
        
        <iframe src="jquery_marquee/index.html" width="700" height="360" frameborder="0" marginheight="0" marginwidth="0" scrolling="no">
        <p>Your browser does not support iframes.</p>
        </iframe> 
        
        <p>
           Nordic-Sauna is a content management system designed for use by students.<br />
           Students are able to upload software they recommend or upload the software that they have created themselves.<br />
           To try Nordic-Sauna, <a href="register.php">click here</a> to register for free!
        </p>
  
        
        
        
        

        
	
	<!-- Content Ends -->
<?php CloseContentSection(); ?> 

<?php include('includes/footer.php');?>




